package com.atguigu;

public class GeometricTest {
    //测试两个对象面积是否相等
    public boolean equalsArea(GeometriObject o1,GeometriObject o2){
        return o1.findArea()==o2.findArea();
    }
    public void displayGeometricObject(GeometriObject o){
        System.out.println();
        System.out.println("面积为"+o.findArea());
    }
    public static void main(String[] args) {
        GeometricTest GT=new GeometricTest();
        Circle c1=new Circle(2.3,"blue",1.0);
        GT.displayGeometricObject(new Circle(2.3,"lanse",1.0));
    }

}
